package cn.iune.erp.sale;


import java.math.BigDecimal;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

public interface ISaleOrderDao {
	
	public void insert(SaleOrder obj);
	
	public void delete(String fID);
	
	public SaleOrder update(SaleOrder obj);

	public List<SaleOrder> getAll();
	
	public SaleOrder getByID(String fID);
	
	public SaleOrder getByNo(String orderNo, String enterpriseNo);


	ArrayList<BigDecimal> getAmountMonth(String year, ArrayList<String> xAxisData, String enterpriseNo);

	List<SaleOrder> getByLoginName(String sLoginName);

	long getUnAgreeCount(String enterpriseNo);

	long getCount(String sLoginName, String handling);

	JSONObject query(JSONObject data) throws SQLException;

	JSONObject querySimple(JSONObject data) throws SQLException;

	BigDecimal getUnpaidXSDDAmount(String customerID, String enterpriseNo);

	JSONObject create(JSONObject data);

	List<SaleOrder> getBySsID(String serviceSessionID);

	JSONObject joint(JSONObject data) throws SQLException;



}
